@import "../../../../../assets/styles/tn-styles.scss";

.padding_all {
    padding: 20px;
}

.padding_top {
    padding-top: 30px;
}

.custom_cell_styling {
    overflow: hidden; 
    height: 20px; 
    width: 100%; 
    padding-left: 5px;
}

.multiActionsButton {
    position: relative;
    top: 1px;
}

#col-select-box {
    margin-left: 20px;

    li {
       list-style: none;
       display: inline-block;
       margin: 2px;
       padding: 0;
       width: 220px;
    }   
}

 #select-all-checkbox-and-label {
     max-width: 100px;
     font-weight: 700;
     margin-left: 2px;
 }
 
#footer {
    padding: 15px;
}

#footer-text {
    margin-left: 10px;
}

// Small page-loading spinner for entity tables
#entity-spinner {
  position: absolute;
  top: 10px; left: 0; bottom: 0; right: 0;
  z-index: 10;
  margin: 0 auto;
}

.mat-card-title-text {
    margin: 20px;
    display: inline-block;
}

#filter{
  margin-right:16px;
}

#filter, .mat-toolbar {
    display: inline-block;
}

#filter, .tooltiptext {
    font-size: 14px;
}

#filter .mat-icon{
  position:relative;
  left:25px;
  top: 8px;
}

#filter .mat-form-field{
  padding-left:32px;
}

//#filter {
//    position: absolute;
//    right: 150px;
//    top: 9px;
//    z-index: 10;
//}

#action-button-wrapper {
    height: 36px;
}

.legacy-warning {
  font-weight:500;
  margin:0 24px;
  color:var(--fg2);
//    position: absolute;
//    font-size: .8rem;
//    top: 75px;
//    right: 10px;
//    z-index: 10;
}

.legacy-warning-link {
    border-bottom: 1px solid;
    cursor: pointer;
}

.clickable {
    height: 28px;
    width: 40px;
    position: absolute;
    background: rgba(0,0,0, .0);
    z-index: 10;
  }

:host {
    ::ng-deep datatable-row-wrapper {
        width: auto;
    }

    mat-icon.widget-icon {
        cursor: pointer;
        font-size: 24px;
        line-height: 24px;
    }
}


.entity-table-controls {
    width: 460px;
    min-width: 460px;
}

.datatable-icon-right:focus, .datatable-icon-down:focus {
    outline: none;
}

@media (max-width: 600px) {
    .entity-table-controls {
        width: 300px;
        min-width: 300px;
        
        button, #filter {
        margin-bottom: 5px;
        }
    }
}

div#cardHeaderContainer {
    padding: 0px !important;
}

/* The fake mat-checkbox */
.fake-mat-checkbox {
  display: block;
  position: absolute;
  left: 24px;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  min-height: 24px;
}

/* Hide the browser's default checkbox */
.fake-mat-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
  border:solid black 3px;
  top: 6px;
  left: 6px;
  width: 6px;
  height: 6px;
  z-index: 10;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 9px;
  left: 9px;
  height: 1.06rem;
  width: 16px;
  border: solid 1.85px var(--fg2);
  border-radius: 10%;
  display: block;
}

/* On mouse-over, add a grey background color */
.fake-mat-checkbox:hover input ~ .checkmark {
  cursor: pointer;
}

/* When the checkbox is checked, add a background */
.fake-mat-checkbox input:checked ~ .checkmark {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.fake-mat-checkbox input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.fake-mat-checkbox .checkmark:after {
  left: 4px;
  top: 0px;
  width: 5px;
  height: 11px;
  border: solid white 0.05px;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}

#entity-table-component {
  margin-top: 15px;
}
